<template>
  <div class="index"  v-on:click="clickHandle">
    <router-link  to="/overview"><img :src="indexImgSrc" ></router-link>
    <router-view></router-view>
  </div>
</template>

<script>
import indexImgSrc from "@/assets/index_0.jpg";
import { mapState, mapActions } from "vuex";
export default {
  name: "Index",
  data() {
    return {
      indexImgSrc: indexImgSrc
    };
  },
  created() {
    ;
  },
  mounted() {
    ;
  },
  computed: {
    ...mapState({
      isShow: "isShow"
    })
  },
  methods: {
    clickHandle: function() {
      this.$store.commit("closeIndex");
    },
    ...mapActions([
      {
        clickHandle: "closeIndex"
      }
    ])
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style>
.index,
.index  img {
  width: 100%;
  height: 100%;
}
</style>
